package cont

import (
	lib "tacitus/library"
	db "tacitus/library/database"
	"xorm.io/xorm"
)

var x *xorm.Engine

func init() {
	x = db.Use("site")

	if lib.Config.Develop.Sync {
		if err := x.Sync2(new(Category), new(Content)); err != nil {
			panic(err)
		}
	}
}